var p1 = Promise.resolve('aaa');
var p2 = new Promise((resolve, reject) => {
	resolve(p1)
})

var p3 =  new Promise((resolve, reject) => {
	setTimeout(() => {
		resolve(p2)
	})
})


p3.then(value => {
	console.log('value => ', value)
	return p2
}, reason => {
	console.warn('reason => ', reason)
}).then(value => {
	console.log('value2 => ', value)
}, reason => {
	console.warn('reason2 => ', reason)
})